<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="./js/ajax.js"></script>
    <script>
        let p1= pAjax({url:'http://localhost:8888/test/second'})
        p1.then((data)=>{
            console.log(data);
        })
    </script>
</body>
</html>